package com.itheima.dao;

import com.itheima.pojo.Permission;
import org.apache.ibatis.annotations.Select;

import java.util.Set;

/**
 * @author xiaycbstart
 * @create 2019 12 30 18:27
 */
public interface PermissionDao {
    @Select("select p.* from t_permission p ," +
            "t_role_permission rp " +
            "where p.id = rp.permission_id " +
            "and rp.role_id = #{roleId} ")
    Set<Permission> findByRoleId(Integer roleId);
}
